﻿using System;
using TIS.DAO;

namespace TIS.UserControl
{
    public partial class slideShow : System.Web.UI.UserControl
    {

        SlideShowDAO _slideShowDao = new SlideShowDAO();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["lang"] == null)
                {
                    Session["lang"] = 1;

                }
                BindSlideShow();
            }
        }

        public void BindSlideShow()
        {

            int langId = int.Parse(Session["lang"].ToString());

            rpSlideShow.DataSource = _slideShowDao.GetSlideShow(langId);
            rpSlideShow.DataBind();


        }
    }
}